package com.jbit.hxy.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jbit.hxy.common.Result;
import com.jbit.hxy.mapper.CategoryDishMapper;
import com.jbit.hxy.model.po.CategoryDish;
import com.jbit.hxy.service.menu.CategoryDishService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 28575
* @description 针对表【category_dish】的数据库操作Service实现
* @createDate 2024-09-11 15:38:10
*/
@Service
@RequiredArgsConstructor
public class CategoryDishServiceImpl extends ServiceImpl<CategoryDishMapper, CategoryDish>
    implements CategoryDishService {
    private final CategoryDishMapper categoryDishMapper;

    @Override
    public Result getDishIdsBycateId(Integer cateId) {
        List<Integer> dishIds = categoryDishMapper.getDishIdsBycateId(cateId);
        return Result.success(dishIds);
    }
}




